package com.tao.controller;

import com.tao.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：jiangTao
 * @Version：1.0
 * @Date：2024/5/13-16:21
 * @Since：jdk1.8
 * @Description：
 */
@RestController
public class UserController {
    @Autowired
    private UserMapper userMapper;

    @GetMapping("/list")
    public String getUser() {
        return userMapper.selectList(null).toString();
    }
}
